package com.hrm.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class VacationExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public VacationExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andVacationIdIsNull() {
            addCriterion("vacation_id is null");
            return (Criteria) this;
        }

        public Criteria andVacationIdIsNotNull() {
            addCriterion("vacation_id is not null");
            return (Criteria) this;
        }

        public Criteria andVacationIdEqualTo(Integer value) {
            addCriterion("vacation_id =", value, "vacationId");
            return (Criteria) this;
        }

        public Criteria andVacationIdNotEqualTo(Integer value) {
            addCriterion("vacation_id <>", value, "vacationId");
            return (Criteria) this;
        }

        public Criteria andVacationIdGreaterThan(Integer value) {
            addCriterion("vacation_id >", value, "vacationId");
            return (Criteria) this;
        }

        public Criteria andVacationIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("vacation_id >=", value, "vacationId");
            return (Criteria) this;
        }

        public Criteria andVacationIdLessThan(Integer value) {
            addCriterion("vacation_id <", value, "vacationId");
            return (Criteria) this;
        }

        public Criteria andVacationIdLessThanOrEqualTo(Integer value) {
            addCriterion("vacation_id <=", value, "vacationId");
            return (Criteria) this;
        }

        public Criteria andVacationIdIn(List<Integer> values) {
            addCriterion("vacation_id in", values, "vacationId");
            return (Criteria) this;
        }

        public Criteria andVacationIdNotIn(List<Integer> values) {
            addCriterion("vacation_id not in", values, "vacationId");
            return (Criteria) this;
        }

        public Criteria andVacationIdBetween(Integer value1, Integer value2) {
            addCriterion("vacation_id between", value1, value2, "vacationId");
            return (Criteria) this;
        }

        public Criteria andVacationIdNotBetween(Integer value1, Integer value2) {
            addCriterion("vacation_id not between", value1, value2, "vacationId");
            return (Criteria) this;
        }

        public Criteria andVacationBeginIsNull() {
            addCriterion("vacation_begin is null");
            return (Criteria) this;
        }

        public Criteria andVacationBeginIsNotNull() {
            addCriterion("vacation_begin is not null");
            return (Criteria) this;
        }

        public Criteria andVacationBeginEqualTo(Date value) {
            addCriterion("vacation_begin =", value, "vacationBegin");
            return (Criteria) this;
        }

        public Criteria andVacationBeginNotEqualTo(Date value) {
            addCriterion("vacation_begin <>", value, "vacationBegin");
            return (Criteria) this;
        }

        public Criteria andVacationBeginGreaterThan(Date value) {
            addCriterion("vacation_begin >", value, "vacationBegin");
            return (Criteria) this;
        }

        public Criteria andVacationBeginGreaterThanOrEqualTo(Date value) {
            addCriterion("vacation_begin >=", value, "vacationBegin");
            return (Criteria) this;
        }

        public Criteria andVacationBeginLessThan(Date value) {
            addCriterion("vacation_begin <", value, "vacationBegin");
            return (Criteria) this;
        }

        public Criteria andVacationBeginLessThanOrEqualTo(Date value) {
            addCriterion("vacation_begin <=", value, "vacationBegin");
            return (Criteria) this;
        }

        public Criteria andVacationBeginIn(List<Date> values) {
            addCriterion("vacation_begin in", values, "vacationBegin");
            return (Criteria) this;
        }

        public Criteria andVacationBeginNotIn(List<Date> values) {
            addCriterion("vacation_begin not in", values, "vacationBegin");
            return (Criteria) this;
        }

        public Criteria andVacationBeginBetween(Date value1, Date value2) {
            addCriterion("vacation_begin between", value1, value2, "vacationBegin");
            return (Criteria) this;
        }

        public Criteria andVacationBeginNotBetween(Date value1, Date value2) {
            addCriterion("vacation_begin not between", value1, value2, "vacationBegin");
            return (Criteria) this;
        }

        public Criteria andVacationEndIsNull() {
            addCriterion("vacation_end is null");
            return (Criteria) this;
        }

        public Criteria andVacationEndIsNotNull() {
            addCriterion("vacation_end is not null");
            return (Criteria) this;
        }

        public Criteria andVacationEndEqualTo(Date value) {
            addCriterion("vacation_end =", value, "vacationEnd");
            return (Criteria) this;
        }

        public Criteria andVacationEndNotEqualTo(Date value) {
            addCriterion("vacation_end <>", value, "vacationEnd");
            return (Criteria) this;
        }

        public Criteria andVacationEndGreaterThan(Date value) {
            addCriterion("vacation_end >", value, "vacationEnd");
            return (Criteria) this;
        }

        public Criteria andVacationEndGreaterThanOrEqualTo(Date value) {
            addCriterion("vacation_end >=", value, "vacationEnd");
            return (Criteria) this;
        }

        public Criteria andVacationEndLessThan(Date value) {
            addCriterion("vacation_end <", value, "vacationEnd");
            return (Criteria) this;
        }

        public Criteria andVacationEndLessThanOrEqualTo(Date value) {
            addCriterion("vacation_end <=", value, "vacationEnd");
            return (Criteria) this;
        }

        public Criteria andVacationEndIn(List<Date> values) {
            addCriterion("vacation_end in", values, "vacationEnd");
            return (Criteria) this;
        }

        public Criteria andVacationEndNotIn(List<Date> values) {
            addCriterion("vacation_end not in", values, "vacationEnd");
            return (Criteria) this;
        }

        public Criteria andVacationEndBetween(Date value1, Date value2) {
            addCriterion("vacation_end between", value1, value2, "vacationEnd");
            return (Criteria) this;
        }

        public Criteria andVacationEndNotBetween(Date value1, Date value2) {
            addCriterion("vacation_end not between", value1, value2, "vacationEnd");
            return (Criteria) this;
        }

        public Criteria andVacationNameIsNull() {
            addCriterion("vacation_name is null");
            return (Criteria) this;
        }

        public Criteria andVacationNameIsNotNull() {
            addCriterion("vacation_name is not null");
            return (Criteria) this;
        }

        public Criteria andVacationNameEqualTo(String value) {
            addCriterion("vacation_name =", value, "vacationName");
            return (Criteria) this;
        }

        public Criteria andVacationNameNotEqualTo(String value) {
            addCriterion("vacation_name <>", value, "vacationName");
            return (Criteria) this;
        }

        public Criteria andVacationNameGreaterThan(String value) {
            addCriterion("vacation_name >", value, "vacationName");
            return (Criteria) this;
        }

        public Criteria andVacationNameGreaterThanOrEqualTo(String value) {
            addCriterion("vacation_name >=", value, "vacationName");
            return (Criteria) this;
        }

        public Criteria andVacationNameLessThan(String value) {
            addCriterion("vacation_name <", value, "vacationName");
            return (Criteria) this;
        }

        public Criteria andVacationNameLessThanOrEqualTo(String value) {
            addCriterion("vacation_name <=", value, "vacationName");
            return (Criteria) this;
        }

        public Criteria andVacationNameLike(String value) {
            addCriterion("vacation_name like", value, "vacationName");
            return (Criteria) this;
        }

        public Criteria andVacationNameNotLike(String value) {
            addCriterion("vacation_name not like", value, "vacationName");
            return (Criteria) this;
        }

        public Criteria andVacationNameIn(List<String> values) {
            addCriterion("vacation_name in", values, "vacationName");
            return (Criteria) this;
        }

        public Criteria andVacationNameNotIn(List<String> values) {
            addCriterion("vacation_name not in", values, "vacationName");
            return (Criteria) this;
        }

        public Criteria andVacationNameBetween(String value1, String value2) {
            addCriterion("vacation_name between", value1, value2, "vacationName");
            return (Criteria) this;
        }

        public Criteria andVacationNameNotBetween(String value1, String value2) {
            addCriterion("vacation_name not between", value1, value2, "vacationName");
            return (Criteria) this;
        }

        public Criteria andOfficialVacationIsNull() {
            addCriterion("official_vacation is null");
            return (Criteria) this;
        }

        public Criteria andOfficialVacationIsNotNull() {
            addCriterion("official_vacation is not null");
            return (Criteria) this;
        }

        public Criteria andOfficialVacationEqualTo(Integer value) {
            addCriterion("official_vacation =", value, "officialVacation");
            return (Criteria) this;
        }

        public Criteria andOfficialVacationNotEqualTo(Integer value) {
            addCriterion("official_vacation <>", value, "officialVacation");
            return (Criteria) this;
        }

        public Criteria andOfficialVacationGreaterThan(Integer value) {
            addCriterion("official_vacation >", value, "officialVacation");
            return (Criteria) this;
        }

        public Criteria andOfficialVacationGreaterThanOrEqualTo(Integer value) {
            addCriterion("official_vacation >=", value, "officialVacation");
            return (Criteria) this;
        }

        public Criteria andOfficialVacationLessThan(Integer value) {
            addCriterion("official_vacation <", value, "officialVacation");
            return (Criteria) this;
        }

        public Criteria andOfficialVacationLessThanOrEqualTo(Integer value) {
            addCriterion("official_vacation <=", value, "officialVacation");
            return (Criteria) this;
        }

        public Criteria andOfficialVacationIn(List<Integer> values) {
            addCriterion("official_vacation in", values, "officialVacation");
            return (Criteria) this;
        }

        public Criteria andOfficialVacationNotIn(List<Integer> values) {
            addCriterion("official_vacation not in", values, "officialVacation");
            return (Criteria) this;
        }

        public Criteria andOfficialVacationBetween(Integer value1, Integer value2) {
            addCriterion("official_vacation between", value1, value2, "officialVacation");
            return (Criteria) this;
        }

        public Criteria andOfficialVacationNotBetween(Integer value1, Integer value2) {
            addCriterion("official_vacation not between", value1, value2, "officialVacation");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}